package com.jic.order.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.order.entity.OrderFreightTemplate;
import com.jic.order.manage.request.OrderFreightTemplateEditRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单运费模板
 * @author : 
 * @email : 
 * @since : 2020-01-14 07:09:22
 * @version : v1.0.0
 */
@Mapper
public interface  OrderFreightTemplateMapper {

    long insert(OrderFreightTemplate orderFreightTemplate);

    long delete(Long id);

    long update(OrderFreightTemplate orderFreightTemplate);

    OrderFreightTemplate queryByPrimaryKey(Long id);

    List<OrderFreightTemplate> query(OrderFreightTemplate orderFreightTemplate);

    List<OrderFreightTemplate> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderFreightTemplate") OrderFreightTemplate orderFreightTemplate);

    long queryPageCount(OrderFreightTemplate orderFreightTemplate);

    //设置运费模板
    long setDefault(OrderFreightTemplate orderFreightTemplate);

}